package com.tyk.bookstore.back.system.model.query;

import com.tyk.bookstore.back.common.core.model.page.PageQuery;
import com.tyk.bookstore.back.system.model.type.RoleState;
import com.tyk.bookstore.back.system.valid.annotation.RoleFieldValid;
import com.tyk.bookstore.back.system.valid.type.RoleFieldValidType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class RolePageQuery extends PageQuery {

    @Schema(description = "角色字符串(模糊)")
    private String code;

    @Schema(description = "角色名称(模糊)")
    private String name;

    @Schema(description = "角色状态[0可用,1禁用]", type = "integer")
    private RoleState state;

    @Schema(description = "创建时间: 开始时间")
    private LocalDateTime startTime;

    @Schema(description = "创建时间: 结束时间")
    private LocalDateTime endTime;

}
